package com.atguigu.gmall.feign.user;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.user.entity.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author:ahang
 * @create:2022-10-23 16:49
 * @Description:
 */
@FeignClient("service-user")
@RequestMapping("/api/inner/user")
public interface UserFeignClient {

    /**
     * 获取用户地址
     * @return
     */
    @GetMapping("/address/list")
    Result<List<UserAddress>> getUserAddress();

}
